<?php
namespace Tbf\Crypto;
/**
 * 使用系统自带hash进行hash
 * @deprecated
 */
class HashCrypto extends Crypto{
    static function canLoad(){
        return function_exists('hash');
    }
    function dHash($data,$hashType){
        return hash( $data,$hashType,true );
    }
    static function dObj(){
        static $cache =null;
        if ($cache===null){
            $cache = new static;
        }
        return $cache;
    }
}
